package com.example.goods.service;

import com.example.goods.bean.Shipping;
import com.example.goods.common.ResultResponse;

import java.util.Optional;

/**
 * Created by IntelliJ IDEA.
 *
 * @author ouyangzhixiang
 * @date 2018/7/5
 */
public interface ShippingService {
    /**
     * 添加收货信息
     * @param userId
     * @param shipping
     * @return
     */
    ResultResponse add(Integer userId, Shipping shipping);

    /**
     * 查找收货地址
     * @param id
     * @return
     */
    ResultResponse<Optional<Shipping>> select(Integer id);

}
